<el-container>
  <el-header>
    <el-row>
      <el-col :span="8">
        <div>
          <img src="../../assets/images/logo.png" />
        </div>
      </el-col>
      <el-col :span="8">
        <div>
          <h1>电商管理系统</h1>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="right">
          <span>这是一个小系统</span>
          <a href="javascript:;" @click.prevent="logout">退出</a>
        </div>
      </el-col>
    </el-row>
  </el-header>
  <el-container>
    <el-aside width="200px">
      <!-- 导航菜单组件 -->
      <el-menu
        class="el-menu-vertical-demo"
        @open="handleOpen"
        @close="handleClose"
        background-color="#545c64"
        text-color="#fff"
        active-text-color="#ffd04b"
        :router="true"
        ref="asideM"
      >
        <!-- 用户管理 -->
        <el-submenu
          v-for="(item,index) in asideMenus"
          :key="item.id"
          :index="item.id+''"
        >
          <template slot="title">
            <i class="el-icon-location"></i>
            <span>{{ item.authName }}</span>
          </template>
          <el-menu-item
            v-for="(itemm,index) in item.children"
            :key="itemm.id"
            :index="'/'+itemm.path"
          >
            <span slot="title">{{ itemm.authName }}</span>
          </el-menu-item>
        </el-submenu>
      </el-menu>
    </el-aside>
    <el-main>
      <router-view></router-view>
    </el-main>
  </el-container>
</el-container>
